package org.example.service.impl;

import cn.jbit.pojo.Order;
import com.google.gson.Gson;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCollapser;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import org.example.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import java.util.List;
import java.util.concurrent.Future;

/**
 * @author 张在成
 */
@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private  OrderService  orderService;


    @Override
    public Order selectOrderByOrderId(Integer orderId) throws Exception {
        System.out.println("----orderService----selectOrderByOrderId");
        Order order=orderService.selectOrderByOrderId(orderId);
        return order;
    }


    @Override
    public List<Order> getOrderList() {
        Integer.parseInt("t");
        List<Order> list = orderService.getOrderList();
        return list;
    }


    @Override
    public List<Order> selOrderListByIds(List<Integer> list) {
        System.out.println("----orderService----selOrderListByIds");
        List list1 = orderService.selOrderListByIds(list);
        return list1;
    }
}
